package com.colorfruit.admin.business.dao;

import com.colorfruit.admin.pojo.entity.FoundationProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FoundationProductMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FoundationProduct record);

    int insertSelective(FoundationProduct record);

    FoundationProduct selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FoundationProduct record);

    int updateByPrimaryKey(FoundationProduct record);

    /**
     * 通过九要素查询产品信息
     * @param record
     * @return
     */
    FoundationProduct getProductByNineCondition(FoundationProduct record);
    /**
     * 查询所有产品
     * @return
     */
    List<FoundationProduct> selectAllProduct(@Param("productName") String productName);

    /**
     *
     * @param id
     * @return
     */
    int updateRecordStatus(@Param("id") Long id, @Param("recordStatus") Byte recordStatus);
}